<template>
	<view class="doctorMember-wrap" v-if="doctorInfo">
		<view class="index-bg" style="height: 280rpx;"></view>
		<view class="doctorMember-header" @click="gotoRouter('/pages-doctor/auth/auth?doctorType=1')">
			<image class="doctorMember-header-img" :src="doctorInfo.picture" mode="aspectFill"></image>
			<view class="doctorMember-header-info">
				<view class="outer1">
					<text lines="1" class="word1">{{ doctorInfo.doctorName }}</text>
					<text lines="1" class="info1">{{ doctorInfo.jobGradeName}}</text>
				</view>
				<text lines="1" decode="true" class="info2 nowrap">{{ doctorInfo.hospName }}&nbsp;&nbsp;{{ doctorInfo.departmentName }}</text>
			</view>
			<view class="doctorMember-header-auth">{{checkStatusConfig[doctorInfo.checkStatus]}}</view>
		</view>

		<view class="doctorMember-list">
			<view class="doctorMember-item" @click="gotoRouter('/pages-doctor/auth/auth')" >
				<image src="http://k8s.vendingtech.vip/images/my_auth@2x.png" class="doctorMember-item-icon"></image>
				<view  class="doctorMember-item-word">我的认证</view>
			</view>
			<view class="doctorMember-item" @click="gotoRouter('/pages-doctor/income/income')" >
				<image src="http://k8s.vendingtech.vip/images/my_income@2x.png" class="doctorMember-item-icon"></image>
				<view  class="doctorMember-item-word">我的收入</view>
			</view>
			<view class="doctorMember-item" @click="gotoRouter('/pages-doctor/bankCard/bankCard')" >
				<image src="http://k8s.vendingtech.vip/images/my_bank_card@2x.png" class="doctorMember-item-icon"></image>
				<view  class="doctorMember-item-word">我的银行卡</view>
			</view>
			<view class="doctorMember-item" @click="gotoRouter('/pages-doctor/evaluateList/evaluateList')" >
				<image src="http://k8s.vendingtech.vip/images/my_message@2x.png" class="doctorMember-item-icon"></image>
				<view  class="doctorMember-item-word">患者评价</view>
			</view>
			<view class="doctorMember-item" @click="gotoRouter('/pages-doctor/serviceSet/serviceSet')" >
				<image src="http://k8s.vendingtech.vip/images/service_set@2x.png" class="doctorMember-item-icon"></image>
				<view  class="doctorMember-item-word">服务设置</view>
			</view>
			<view class="doctorMember-item" @click="gotoRouter('/pages/accountSwitch/accountSwitch?pageType=1')" >
				<image src="http://k8s.vendingtech.vip/images/account_cut@2x.png" class="doctorMember-item-icon"></image>
				<view  class="doctorMember-item-word">账户切换</view>
			</view>
		</view> 
	</view>
</template>

<script>
export default {
	data() {
		return {
			doctorInfo:null,
			hospital:null,
		};
	}, 
	created(option) {
		this.getDoctorInfo()
	},
	mounted() {},
	methods: {
		//获取医生/药师个人信息
		getDoctorInfo() {
			this.$api.getDoctorInfo({}).then(res => {
				if (res.code == 200) {
					this.doctorInfo = res.result
					this.hospital = res.result.hosptail
				} 
			});
		},
	}
};
</script>

<style lang="less">
@import './doctorMember.less';
</style>
